import request from '@/utils/request'

//特殊车辆列表
export function fetchList(query) {
  return request({
    url: '/specialCar/list',
    method: 'post',
    data: query
  })
}

//删除特殊车辆
export function deleteSpecialCar(id) {
  return request({
    url: '/specialCar/delete/' + id,
    method: 'post',
  })
}

//创建特殊车辆
export function createSpecialCar(query) {
  return request({
    url: '/specialCar/create',
    method: 'post',
    data: query
  })
}

//更新特殊车辆
export function updateSpecialCar(query) {
  return request({
    url: '/specialCar/update',
    method: 'post',
    data: query
  })
}


//特殊车辆详情
export function specialCarDetail(id) {
  return request({
    url: '/specialCar/' + id,
    method: 'get',
  })
}


//机构下的收费规则列表
export function listDepartmentRule(query) {
  return request({
    url: '/auth/listDepartmentRule',
    method: 'post',
    data: query
  })
}


//特殊车辆明细列表
export function specialCarInfoList(query) {
  return request({
    url: '/specialCar/info/list',
    method: 'post',
    data: query
  })
}

//删除特殊车辆明细
export function deleteSpecialCarInfo(id) {
  return request({
    url: '/specialCar/info/delete/' + id,
    method: 'post',
  })
}

//创建特殊车辆明细
export function createSpecialCarInfo(query) {
  return request({
    url: '/specialCar/info/create',
    method: 'post',
    data: query
  })
}

//更新特殊车辆明细
export function updateSpecialCarInfo(query) {
  return request({
    url: '/specialCar/info/update',
    method: 'post',
    data: query
  })
}


//特殊车辆详情明细
export function specialCarInfoDetail(id) {
  return request({
    url: '/specialCar/info/' + id,
    method: 'get',
  })
}
